package com.example.Repository;


import com.example.entity.ClassTable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ClassTableRepository extends JpaRepository<ClassTable, Long> {
    @Query(value = "SELECT * FROM schedule", nativeQuery = true)
    List<ClassTable> findAllClass();
}
